import {
    ref
} from 'vue'
export default function (todoListRef) {
    const deleteTodo = (val) => {
        todoListRef.value.splice(todoListRef.value.indexOf(val), 1)
    }
    return {
        deleteTodo
    }
}